<template>
    <document-tab :tab-list="myTabList" v-if="myTabList">
        <template slot-scope="{item}">
                    <tab-content :params="item.params" :appFun="item.appFun" :formatter="item.formatter"></tab-content>
        </template>
    </document-tab>
</template>
<script>
    import DocumentTab from "@/components/Common/DocumentTab";
    import TabContent from "./TabContent";
    import common from "../js/config";

    export default {
        components: {TabContent, DocumentTab},
        data(){
            return{
                myTabList:[]
            }
        },
        created() {
           this.myTabList = common.getTabList(3)
        }
    };
</script>
